package com.nbsaas.boot.sql;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class SqlCondition {
    private String field;
    private String operator; // =, >=, <=, LIKE, IN, BETWEEN, !=, etc.

    public SqlCondition(String field, String operator, Object value) {
        this.operator = operator;
        this.field = field;
        this.value = value;
    }

    private Object value;    // 单值或 List

    private Object value2;   // BETWEEN 的第二个值（可选）
}
